<div class="block block-{{ data.contentModel }} block-{{ data.contentModel }}-image" id="{{ data.getId() }}">
    {% if data.name is defined AND data.displayTitle %}<h3 class="block-title">{{ data.name }}</h3>{% endif %}
    {% if nodeList %}
        <ul class="block-node-list">
            {% for item in nodeList %}
                {% if item.images is defined AND item.images %}
                    <li>
                        <a href="{{ url(['for':'node','contentModel':item.contentModel,'id':item.getId()]) }}" class="node-thumbnail-link">
                            {% set imgsrc = arrayEnd(item.images) %}
                            {% if data.imageSize is defined AND data.imageSize %}
                                {% set thumb = explode('*',data.imageSize) %}
                            <img class="thumb" src="{{ thumbnail(thumb[0],thumb[1],imgsrc) }}"/>
                            {% else %}
                            <img class="thumb" src="{{ imgsrc }}"/>
                            {% endif %}
                        </a>
                        <a class="title" href="{{ url(['for':'node','contentModel':item.contentModel,'id':item.getId()]) }}">{{ item.title }}</a>
                    </li>
                {% endif %}
            {% endfor %}
        </ul>
    {% endif %}
</div>